package com.oriental.manage.pojo.institution;

import com.oriental.manage.pojo.base.BaseModel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by dongyy on 2017/5/10.
 * 商户支付机构关系配置
 */
public class ChannelRelationship extends BaseModel implements Serializable {

    /**
     * 商户代码
     */
    private String id;
    /**
     * 商户代码
     */
    private String mchntCode;
    /**
     * 支付机构
     */
    private String payOrgCode;
    /**
     * 银行类型
     */
    private String bankType;
    /**
     * 银行代码
     *
     */
    private String BankCode;
    /**
     * 启用标志 0:禁用 1:启用
     */
    private String enableFlag;
    /**
     * 记录生成日期
     */
    @DateTimeFormat(pattern = "yyyyMMdd")
    private Date createTime;
    /**
     * 记录最后更新日期
     */
    @DateTimeFormat(pattern = "yyyyMMdd")
    private Date lastUpdTime;
    /**
     * 机构银行代码
     */
    private String orgBankCode;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMchntCode() {
        return mchntCode;
    }

    public void setMchntCode(String mchntCode) {
        this.mchntCode = mchntCode;
    }

    public String getPayOrgCode() {
        return payOrgCode;
    }

    public void setPayOrgCode(String payOrgCode) {
        this.payOrgCode = payOrgCode;
    }

    public String getBankType() {
        return bankType;
    }

    public void setBankType(String bankType) {
        this.bankType = bankType;
    }

    public String getBankCode() {
        return BankCode;
    }

    public void setBankCode(String bankCode) {
        BankCode = bankCode;
    }

    public String getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(String enableFlag) {
        this.enableFlag = enableFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdTime() {
        return lastUpdTime;
    }

    public void setLastUpdTime(Date lastUpdTime) {
        this.lastUpdTime = lastUpdTime;
    }

    public String getOrgBankCode() {
        return orgBankCode;
    }

    public void setOrgBankCode(String orgBankCode) {
        this.orgBankCode = orgBankCode;
    }

    @Override
    public String toString() {
        return "ChannelRelationship{" +
                "id=" + id +
                ", mchntCode='" + mchntCode + '\'' +
                ", payOrgCode='" + payOrgCode + '\'' +
                ", bankType='" + bankType + '\'' +
                ", BankCode='" + BankCode + '\'' +
                ", enableFlag='" + enableFlag + '\'' +
                ", createTime=" + createTime +
                ", lastUpdTime=" + lastUpdTime +
                ", orgBankCode='" + orgBankCode + '\'' +
                '}';
    }
}
